package com.ophelisis.persistence.dao.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import com.ophelisis.ibatis.handler.handler_user_portal;
import com.ophelisis.persistence.dao.PortalUserDAO;
import com.ophelisis.persistence.domain.PortalUserVO;

/**
 * <pre>
 * Class : com.ophelisis.persistence.dao.impl.PortalUserDAOImpl / PortalUserDAOImpl.java
 * 	Define Class Object : 
 * <br>
 * </pre>
 * @author hwanLee / apexcns,Inc.
 * @version 1.0
 * @see javadoc
 * @since 2013. 07. 29.
 */
@Repository
public class PortalUserDAOImpl implements PortalUserDAO {
	@Override
	public List<PortalUserVO> getPortalUserList() throws DataAccessException, SQLException, Exception {
		try {
			return handler_user_portal.getPortalUserList();
		} catch (SQLException e) {
			e.printStackTrace();
			return null;
		}
	}

	@Override
	public List<PortalUserVO> getPortalUserList(Map<String, Object> params) throws DataAccessException, SQLException, Exception {
		try {
			return handler_user_portal.getPortalUserList(params);
		} catch (SQLException e) {
			e.printStackTrace();
			return null;
		}
	}

	@Override
	public Integer getPortalUserListCnt() throws DataAccessException, SQLException, Exception {
		try {
			return handler_user_portal.getPortalUserListCnt();
		} catch (SQLException e) {
			e.printStackTrace();
			return 0;
		}
	}

	@Override
	public Integer getPortalUserListCnt(Map<String, Object> params) throws DataAccessException, SQLException, Exception {
		try {
			return handler_user_portal.getPortalUserListCnt(params);
		} catch (SQLException e) {
			e.printStackTrace();
			return 0;
		}
	}

	@Override
	public PortalUserVO getPortalUserInfo(Map<String, Object> params) throws DataAccessException, SQLException, Exception {
		try {
			return handler_user_portal.getPortalUserInfo(params);
		} catch (SQLException e) {
			e.printStackTrace();
			return null;
		}
	}
	
	@Override
	public List<PortalUserVO> getPortalUserDetail(Map<String, Object> params) throws DataAccessException, SQLException, Exception {
		try {
			return handler_user_portal.getPortalUserDetail(params);
		} catch (SQLException e) {
			e.printStackTrace();
			return null;
		}
	}

	@Override
	public Integer setPortalUserDelete(Map<String, Object> params) throws DataAccessException, SQLException, Exception {
		try {
			return handler_user_portal.setPortalUserDelete(params);
		} catch (SQLException e) {
			e.printStackTrace();
			return 0;
		}
	}

	@Override
	public Integer setPortalUserModify(PortalUserVO paramVO) throws DataAccessException, SQLException, Exception {
		try {
			return handler_user_portal.setPortalUserModify(paramVO);
		} catch (SQLException e) {
			e.printStackTrace();
			return 0;
		}
	}

	@Override
	public Integer setPortalUserAdd(PortalUserVO paramVO) throws DataAccessException, SQLException, Exception {
		try {
			return handler_user_portal.setPortalUserAdd(paramVO);
		} catch (SQLException e) {
			e.printStackTrace();
			return 0;
		}
	}
}
